var sw = document.querySelector('.swiper-wrapper')
var lunbo = [
  'image/yuyue1-1.png'
]

for(let i = 0; i < lunbo.length; i++){
  var div = document.createElement('div')
  div.className = 'swiper-slide'
  var img = document.createElement('img')
  img.src = lunbo[i]
  div.appendChild(img)
  sw.appendChild(div)
}
// 初始化swiper
var swiper = new Swiper(".swiper", {
  loop: true, // 循环模式选项
  // effect:'cube',
  autoplay:true,

  pagination: {
    el: ".swiper-pagination",
  },
});
